package com.yuanzong.wuliu.model.system.notice;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yuanzong.wuliu.model.base.BaseModel;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

@ApiModel(value = "SystemNotice", description = "系统 - 公告")
@TableName(value ="system_notice")
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
public class SystemNotice extends BaseModel implements Serializable {

    private static final long serialVersionUID = 21L;

    @ApiModelProperty(value = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

}
